import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class HomeTitle extends StatefulWidget {

  HomeTitle({this.title,this.subtitle});
  final String title;
  final String subtitle;
  @override
  _HomeTitleState createState() => _HomeTitleState();
}

class _HomeTitleState extends State<HomeTitle> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width:750.w,
      height:120.h,
      alignment: Alignment.centerLeft,
      color: Colors.white,
      child: ListTile(
          title:Text(widget.title,style: TextStyle(
            fontSize: 30.sp,
            fontWeight: FontWeight.bold
          ),),
          subtitle:Text(widget.subtitle),
        trailing: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            Text('更多'),
            Icon(Icons.chevron_right)
          ],
        ),
      ),
    );
  }
}
